package unit4.work.ball;

public class Ball {
    //成员变量
    String mc;
    String zj;
    String cz;
    String zl;
    String rq;
    String tc;
    String shape;
    public String getTc() {
        return tc;
    }

    public void setTc(String tc) {
        this.tc = tc;
    }

    public String getShape() {
        return shape;
    }

    public void setShape(String shape) {
        this.shape = shape;
    }
    public String getMc(){
        return mc;
    }
    public void setMc(String mc){
        this.mc=mc;
    }
    public String getZj() {
        return zj;
    }
    public void setZj(String zj){
        this.zj=zj;
    }
    public String getCz() {
        return cz;
    }
    public void setCz(String cz){
        this.cz=cz;
    }
    public String getZl() {
        return zl;
    }
    public void setZl(String zl){
        this.zl=zl;
    }
    public String getRq() {
        return rq;
    }
    public void setRq(String rq) {
        this.rq = rq;
    }
    Ball(String mc,String zj,String cz,String zl,String rq,String tc,String shape){
        this.mc=mc;
        this.zj=zj;
        this.cz=cz;
        this.zl=zl;
        this.rq=rq;
        this.shape=shape;
        this.tc=tc;
    }
    final String rest(){
        shape="圆";
        tc="空气";
        return "。填充的是"+tc+"，形状是"+shape;
    }
    String play(){
        String b="我是"+mc+","+"我的直径是"+zj+","+"我的材质是"+cz+","
                +"我的重量是"+zl+","+"我适合的人群是"+rq+rest();
        return b;
    }
}
